#include "registered.h"
#include "login.h"
#include "ui_registered.h"

Registered::Registered(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Registered)
{
    ui->setupUi(this);
}

Registered::~Registered()
{
    delete ui;
}

void Registered::set_login(std::weak_ptr<Login> login)
{
    _login = login;
}

void Registered::on_registeredBtn_clicked()
{
    close();
    auto p = _login.lock();
    p->show();
}

